package api.Impl;

import api.PaymentStrategy;

// 具体策略实现 - 微信支付
public class WxPayment implements PaymentStrategy {
    private String phoneNumber;

    public WxPayment(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    @Override
    public void pay(int amount) {
        System.out.println("微信支付, 交易金额 " + amount + " 使用的手机号: " + phoneNumber);
    }
}
